<template>
    <el-table :default-expand-all="true" row-key="id" :tree-props="{children: 'children'}" :data="<?php echo Building::getInstance()->renderSearch($search)?>">
        <?php echo Building::getInstance()->renderTable($fields,$pri)?>
        <el-table-column align="right">
            <template slot="header" slot-scope="scope">
                <el-input v-model="search" size="mini" placeholder="输入关键字搜索" style="max-width: 300px"/>
            </template>
            <template slot-scope="scope">
                <?php echo Building::getInstance()->renderTableButton($tableButton);?>
            </template>
        </el-table-column>
    </el-table>
    <!--分页组件-->
    <div class="block" style="margin-top: 15px; float: right">
        <el-pagination
                :page-size="15"
                @current-change="init"
                layout="prev, pager, next"
                :total="total">
        </el-pagination>
    </div>
</template>